"""
字符串相关操作
"""


# 拼接
def append(str='', word=''):
    str = str + word
    return str


# 重复
def repeat(str = ''):
    return str*2


# 分片,字串
def fabric(str = ''):
    return str[:3]


if __name__ == "__main__":
    # print(fabric('hello'))
    a = 'hello'
    b = 'world'
    print(a, end=' ')
    print(b)
    print('python')
